﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using tessnet2;
using System.Drawing;

namespace WOS.Security
{
    class Captha
    {
        List<Word> myword = new List<Word>();
        public string Captcha(Uri url)
        {
            return "xy";
        }
        public List<Word> Captcha(System.Drawing.Bitmap image)
        {
            Tesseract t = new Tesseract();//tesseract icin tessdata klasörünün yolunuda göstermemiz gerek.
            myword = t.DoOCR(image, Rectangle.Empty);
            return myword;
        }
    }
}
